package cn.zjutleo.village_server;

import cn.zjutleo.village_server.config.*;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author : Qin Zhenghan
 * @date : Created in 2021/8/14
 * @description: village_server启动类
 */
@SpringBootApplication
@EnableConfigurationProperties({JwtConfig.class,
        UserOperationLogConfig.class,
        WechatConfig.class,
        ElasticSearchConfig.class,
        SmsConfig.class
    })
@EnableSwagger2
@MapperScan(basePackages = "cn.zjutleo.village_server.mapper")
@EnableScheduling
@EnableAsync
public class VillageServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(VillageServerApplication.class, args);
        System.out.println("GOGO");
    }
}
